
--------------------------
|  Stage 4 작업 Planning  | 
--------------------------
[추출 정보]:
- claim_id
- case_kind
- claim_title
- plaintiffs
- defendants
- claim_statement
- relief_summary
- cause_summary

[추가 추출: 필드명은 바뀔 수 있음]
- expected_defense / 예상 항변 (2개)
- rebuttal / 재반박 (2개)
- legal_elements / 요건 요소
- legal_facts / 요건 사실

추출한 정보를 바탕으로 청구권 내용을 법리적으로 뒷받침할 과거 판례 리서치

1. 판례검색 쿼리 생성 [Gemini-3.1-Pro-Preview/reasoning=high/verbosity=low]
- 3-layer [법리/사실관계/조문요건요소] 키워드 생성
- 의미론적 쿼리 생성

2. 쿼리 -> DB 적용 [Weaviate DB 그 자체]
- 적용 시 embedding model: Qwen embedding model 사용
- 가장 상위(내용상 가까운) 판례 2개 추출
  - 가장 상위 판례 1개는 반드시 남기고,
  - 두번째 판례가 첫번째 판례에 비해서 해당 `청구권/청구취지/청구원인`을 법리적으로 잘 뒷받침하지 않는다면 drop

3. 내용 정리 [Gemini-3.1-Flash-Lite-Preview/reasoning=medium/verbosity=high]
- 청구권별 최대 2개 판례를 요약 정리 
- 청구권별 판례 리서치 내용 생성: `C-###_case_report.json` (잠정적 명칭)

4. 문서 생성 [Python Code] 
- `C-###_case_report.json` 모두 모아서 하나의 리포트 생성
- 판례검색 리서치 리포트: `claims_case_research.md` (잠정적 명칭)

------------------------------------------------------------------------------------------------

--------------------------
|  Stage 5 작업 Planning  | 
--------------------------

# task_0: [정보추출/Python Code]
IN:
  - `C-###_claim_description.json`
  - claims_case_research.md
OUT:
  - `complaint_information_view.json`

# task_1: [소장 작성/추론 작업]
[Claude-Opus-4.6/reasoning=medium] -- impose constraints on using inputs only once (not multiple times)
IN: 
  - `complaint_information_view.json`
  - `workflow_summary.json` / stage 0부터 stage 4까지의 작업 개요를 모두 설명한 문서 (추상적 개요 / 민사소송용으로 미리 작성)
OUT:
  - `complaint.md`
 

# Remark
- [청구항변반박전략서.md + claims_case_research.md] -- 법률사무소 내부 검토 문서로 생성





 